package game

import (
	"github.com/gin-gonic/gin"
	v1 "qm_system_server/server/api/v1"
	"qm_system_server/server/middleware"
)

type QmVersionRouter struct {
}

// InitQmVersionRouter 初始化 qmVersion表 路由信息
func (s *QmVersionRouter) InitQmVersionRouter(Router *gin.RouterGroup) {
	qmVersionRouter := Router.Group("qmVersion").Use(middleware.OperationRecord())
	qmVersionRouterWithoutRecord := Router.Group("qmVersion")
	var qmVersionApi = v1.ApiGroupApp.GameApiGroup.QmVersionApi
	{
		qmVersionRouter.POST("createQmVersion", qmVersionApi.CreateQmVersion)             // 新建qmVersion表
		qmVersionRouter.DELETE("deleteQmVersion", qmVersionApi.DeleteQmVersion)           // 删除qmVersion表
		qmVersionRouter.DELETE("deleteQmVersionByIds", qmVersionApi.DeleteQmVersionByIds) // 批量删除qmVersion表
		qmVersionRouter.PUT("updateQmVersion", qmVersionApi.UpdateQmVersion)              // 更新qmVersion表
	}
	{
		qmVersionRouterWithoutRecord.GET("findQmVersion", qmVersionApi.FindQmVersion)       // 根据ID获取qmVersion表
		qmVersionRouterWithoutRecord.GET("getQmVersionList", qmVersionApi.GetQmVersionList) // 获取qmVersion表列表
	}
}
